﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CimeaSoft.BE;

namespace CimeaSoft.Repository
{
    public class CondMeterologicasRepository:MasterRepository,ICondMeterologicasRepository
    {
        public void addCondMetereologicas(CondiMetereologica condMetereologica)
        {
            context.CondiMetereologicas.Add(condMetereologica);
            context.SaveChanges();
        }


        public void updateCondMetereologicas(CondiMetereologica condMetereologica)
        {
            condMetereologica.Muestra = null;

            context.Entry(condMetereologica).State = System.Data.EntityState.Modified;
            context.SaveChanges();
        }
    }
}
